package com.zlt.util;

import com.zlt.invocation.TansactionInvocation;

import java.lang.reflect.Proxy;

public class ProxyCreator {

    public static Object createProxy(Object target) {

        return Proxy.newProxyInstance(target.getClass().getClassLoader(), target.getClass().getInterfaces(), new TansactionInvocation(target));
    }
}
